package com.app.newiptv.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Created by zcc on 2016/10/12.
 */

public class NetChangeBootReceiver extends BroadcastReceiver {


    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
            Log.i("NetReceiver", "boot receiver");
            Intent netChangeService = new Intent();
            netChangeService.setAction("com.app.newiptv.service.NetChangeService");
            context.startService(netChangeService);
        }
    }


}
